﻿<!--
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
-->
<common:SharePage
    x:Class="ShareSource.ShareText"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ShareSource"
    xmlns:common="using:SDKTemplate.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Left" VerticalAlignment="Top">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid x:Name="Input" Grid.Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <StackPanel HorizontalAlignment="Left">
                <TextBlock TextWrapping="Wrap" Width="500" Style="{StaticResource BasicTextStyle}">
                    Data Package Title:
                </TextBlock>
                <TextBox x:Name="TitleInputBox" HorizontalAlignment="Stretch" MaxWidth="500" TextWrapping="Wrap" Text="What are Metro Style Apps?" />
                <TextBlock TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}">
                    <LineBreak />Data Package Description:
                </TextBlock>
                <TextBox x:Name="DescriptionInputBox" HorizontalAlignment="Stretch" MaxWidth="500" TextWrapping="Wrap" Text="Selected text from the Share Source sample" />
                <TextBlock TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}">
                    <LineBreak />Enter the text you would like to share
                </TextBlock>
                <TextBox x:Name="TextToShare" HorizontalAlignment="Stretch" MaxWidth="500" Height="100" TextWrapping="Wrap" 
                    AcceptsReturn="True" Background="LightGray" Foreground="Black" IsReadOnly="False"
                    Text="Metro style apps are full screen apps tailored to your users' needs, tailored to the device they run on, tailored for touch interaction, and tailored to the Windows user interface. Windows helps you interact with your users, and your users interact with your app." />
                <StackPanel x:Name="ShareStep" Visibility="Visible" HorizontalAlignment="Left">
                    <TextBlock Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Stretch" MaxWidth="500" TextWrapping="Wrap" TextAlignment="Left">
                        <LineBreak/>To share, bring up the charms bar and select Share (or press Win+H).<LineBreak/>
                        <LineBreak/>You can also invoke share programmatically after prompting the user in response to an event
                        (e.g. Your high score is 687 points. Do you want to share it now?)
                    </TextBlock>
                    <Button x:Name="ShowUIButton" Content="Share" Margin="0,10,0,0" Click="ShowUIButton_Click" />
                </StackPanel>
            </StackPanel>
        </Grid>

        <Grid x:Name="Output" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1">
        </Grid>
        
        <!-- Add Storyboards to the visual states below as necessary for supporting the various layouts -->
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup>
                <VisualState x:Name="FullScreenLandscape"/>
                <VisualState x:Name="Filled"/>
                <VisualState x:Name="FullScreenPortrait"/>
                <VisualState x:Name="Snapped"/>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
    </Grid>
</common:SharePage>
